@import './variables.scss';
@import './function.scss';

// 字体颜色方法rgba
// 红色系
@mixin error_color($level: 6) {
    color: genColor($color-basic-error, $level);
}
// 绿色系
@mixin success_color($level: 6) {
    color: genColor($color-basic-success, $level);
}
// 橘色系
@mixin warning_color($level: 6) {
    color: genColor($color-basic-warning, $level);
}
// 黑色系
@mixin grey_color($level: 6) {
    color: getAlpha(#000000, $level);
}

// 超出多少行后隐藏
@mixin ellipsisLine($line: 2) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $line;
    overflow: hidden;
    text-overflow: ellipsis;
}
@mixin ellipsis() {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}